package com.github.cyf.requestLock.entity;

import com.github.cyf.requestLock.annotation.RequestKeyParam;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * @author chenyifan
 * @create 2024-03-27 11:11
 */
@Data
public class User {

    private Long id;
    @RequestKeyParam
    private String userName;
    private LocalTime localTime;
    private LocalDate localDate;
    private LocalDateTime localDateTime;

    private Address address;

    public User() {
    }

    public User(Long id, String userName, LocalTime localTime, LocalDate localDate, LocalDateTime localDateTime) {
        this.id = id;
        this.userName = userName;
        this.localTime = localTime;
        this.localDate = localDate;
        this.localDateTime = localDateTime;
    }
}
